#include "aboutdialog.h"
#include "ui_aboutdialog.h"

aboutDialog::aboutDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::aboutDialog)
{
    ui->setupUi(this);

    //本对话框大小已经锁定,通过设置窗口最大尺寸和最小尺寸都等于当前尺寸实现

}

aboutDialog::~aboutDialog()
{
    delete ui;
}

void aboutDialog::closeEvent(QCloseEvent *event)
{
    Q_UNUSED(event);
    this->deleteLater();//安全删除本窗口内存
}

void aboutDialog::on_pushButton_clicked()
{
    this->accept();//点击确定后发送accept()信号,结束本对话框的模态显示
}

